<!DOCTYPE html>
<html xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
	<th:block th:include="include/src :: form_base_js_and_css"/>
</head>

<style>
	.layui-form-checkbox[lay-skin=primary] {
		height: 25px !important;
	}
</style>
<body style="background-color: #f2f2f2; height: 100%;">

<div id="id_panel">
</div>
<input type="hidden" name="commodityProperty" id="commodityProperty" value="">
<script th:inline="javascript">
	$('#commodityProperty').val('[(${commodityProperty})]');
	// 表单初始化
	var formObj = null;
	//使用layui的sku模块
	layui.config({
		//自定义layui组件的目录,设定扩展的layui模块的所在目录，一般用于外部模块扩展
		base: '/static/js/layui_extends/',
		version: true
	}).use(['form', 'jquery', 'laydate', 'YsForm', 'YsModal', 'simple_table_TP_ProductBq'], function(){
		var $ = layui.jquery,
				form = layui.form,
				laydate = layui.laydate,
				YsForm = layui.YsForm,
				YsModal = layui.YsModal,
				simple_table_TP_ProductBq = layui.simple_table_TP_ProductBq;
		/*
		* 表单初始化
		* 参数1：表单配置参数
		* 参数2：子表配置参数
		*/
		formObj = YsForm.init(
				{
					id:'id_panel', // 页面容器ID
					dto: $.parseJSON(JSON.stringify([[${dto}]])),
					subGridConfig: { name: 'simple_table_TP_ProductBq', data: $.parseJSON(JSON.stringify([[${sonlist}]])), onProcess: [[${onProcess}]] }

				}
		);
	});


</script>

</body>
</html>